package com.bysj.lms.pojo.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;

import com.bysj.lms.utils.LocalDateConverter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaojiakai
 * @since 2022-02-04
 */
@ApiModel(value = "低值设备模型")
@Getter
@Setter
@TableName("lms_lve")
@ToString
public class LmsLve implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    @ExcelProperty(value = "低值品编号")
    @ColumnWidth(value = 14)
    @ApiModelProperty(value = "低值品编号")
    private String instruNumber;

    @ExcelProperty(value = "低值品名称")
    @ColumnWidth(value = 14)
    @ApiModelProperty(value = "低值品名称")
    private String instruName;

    @ExcelProperty(value = "分类号")
    @ColumnWidth(value = 12)
    @ApiModelProperty(value = "分类号")
    private String classficationNumber;

    @ExcelProperty(value = "型号")
    @ColumnWidth(value = 10)
    @ApiModelProperty(value = "型号")
    private String model;

    @ExcelProperty(value = "规格")
    @ColumnWidth(value = 10)
    @ApiModelProperty(value = "规格")
    private String specification;

    @ExcelProperty(value = "数量")
    @ColumnWidth(value = 10)
    @ApiModelProperty(value = "数量")
    private Integer amount;

    @ExcelProperty(value = "单价")
    @ColumnWidth(value = 10)
    @ApiModelProperty(value = "单价")
    private Float price;

    @ExcelProperty(value = "金额")
    @ColumnWidth(value = 10)
    @ApiModelProperty(value = "金额")
    private Float totalPrice;

    @ExcelProperty(value = "厂家")
    @ColumnWidth(value = 10)
    @ApiModelProperty(value = "厂家")
    private String manufactor;

    @ExcelProperty(value = "购置日期",converter = LocalDateConverter.class)
    @ColumnWidth(value = 14)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "购置日期")
    private LocalDate purchaseDate;

    @ExcelProperty(value = "入库时间",converter = LocalDateConverter.class)
    @ColumnWidth(value = 14)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "入库时间")
    private LocalDate storageDate;

    @ExcelIgnore
    @ApiModelProperty("实验室id")
    private String roomId;

    @ExcelIgnore
    @ApiModelProperty("实验室编号")
    @TableField(exist = false)
    private String roomNumber;

    @ExcelIgnore
    @ApiModelProperty("借用状态")
    private String status = "0";


}
